package com.mazsn.single;

/**
 * 枚举方式实现单例模式
 * @author mazhongshan
 *
 */
public enum Singleton {
	 INSTANCE; 
	
	public void showMessage() {
		System.out.println("this is a singleton---->enum");
	}
}
